<?php
$q=$_GET["q"];
$hint="";
include_once 'databaseconnection.php';
if($q=="")
{
$hint='<img src="images/alert.jpg" width="12" height="12"/><font color="red">Please enter your username!</font>';
}
if($q!="")
{
$queryres=mysql_query("SELECT * FROM user WHERE Login_Username='$q'");
if($queryres)
{
	if($row=mysql_fetch_array($queryres))
	{
	$Type=$row['Access_Type'];
	if($Type=="Administrator")
	{
	$hint="<table width='676' height='84' border='0' class='tablefontv'><tr bgcolor='#4AC5FF'><th width='21'row'>&nbsp;</th><th width='159' height='33'row'>New Password: </th><td width='168'><input type='password' name='New_Password' id='New_Password' onKeyUp='showProgress(this.value)'/></td><td width='310'><div id=progress></div></td></tr> <tr><th width='21'row' bgcolor='#06AEFF'>&nbsp;</th><th width='159' height='33'row' bgcolor='#06AEFF'>Verify your New Password: </th><td width='168' bgcolor='#06AEFF'><input type='password' name='Veri_New_Password' id='Veri_New_Password'/></td><td width='310' bgcolor='#06AEFF'><input name='Reset' align='middle' type='submit' value='Reset'/></td></tr></table>";
	}
	else
	{
	$hint='<img src="images/alert.jpg" width="12" height="12"/><font color="red">Sorry can not find your password,Please contact with the Administrator!</font>';
	}
	}
}
}
if($hint=="")
{
$response='<img src="images/alert.jpg" width="12" height="12"/><font color="red">Sorry can not find your password,Please contact with the Administrator!</font>';
}
else
{
$response=$hint;
}
echo $response;
?>